﻿#ifndef FORMULABASE_H
#define FORMULABASE_H

#include <QObject>
#include <QSqlQuery>

class FormulaBase : public QObject
{
    Q_OBJECT
public:
    explicit FormulaBase(QObject *parent = nullptr);

    int id;
    QString companyId;
    QString combineId;
    int combineCount;
    QString splitIds;
    QString splitCounts;

    FormulaBase(QJsonObject obj);

    void loadFromJsonObject(QJsonObject obj);

    void loadFromSqlQuery(QSqlQuery query);
signals:

public slots:
};

#endif // FORMULABASE_H
